Modules

Python comes with a library of standard modules.

https://docs.python.org/2/library/


In [ ]:
# Import all methods
import json 
data_file = open('../data/workfile.json')
data = json.load(data_file)

print(data)

In [ ]:
# Import a specific method
from os import path
print path.basename('../data/workfile.json')

In [ ]:
# Alias modules
import numpy
print numpy.__version__
import numpy as np # Alias module
print np.__version__

Anaconda packages

Anaconda for Python 2.7 has another 480+ supported packages 150+ installed by default

https://docs.continuum.io/anaconda/pkg-docs